import http from "@/utils/http";

export const selectUserMsgById = (id: any) => {
    return http.get(`/sys/user/${id}`)
}

export const selectChatUserList = () => {
    return http.post('back/chatHistory/chatUserList')
}

export const selectChatHistoryById = (attentionedId: any, limit: number) => {
    return http.get('/back/chatHistory/chatHistory', {
        params: {
            attentionedId,
            limit
        }
    })
}


//获取站内消息
export const getNotification = (params: any) => {
    return http.get('/sys/notification/page', {
        params
    })
}